<!DOCTYPE html>
<html>

<head>
    <title>我关注的人</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/plugins/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/plugins/jquery/jquery.min.js"></script>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <script src="/js/plugins/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css" />
    <link rel="stylesheet" href="/css/reset.css" />
    <link rel="stylesheet" href="/css/message.css" />
    <script src="/js/common.js"></script>

    <script>
        var currentPage=1;//默认第一页数据
        function queryForPage() {
            var param=getParams();
            //获取获赞信息
            $.get("/concerneds/concerns",{currentPage:currentPage,userId:param.userId},function (data) {
                var list = data.list;
                $.each(list,function (index, item) {
                    $(".itemList").append("<a href="+"../userProfiles.html?userId="+item.id+"><dd>" +
                        "<p><img src=\""+item.headImgUrl+"\" style=\"width: 20px;height: 20px;\"/> <span>"+item.nickName+"</span></a></p>" +
                        "<p>"+item.place+"</p>" +
                        "</dd>")
                })
                if(currentPage>1&&currentPage>=data.pages){
                    $(document).dialog({
                        type : 'notice',
                        infoText: '到底啦！',
                        autoClose: 1000,
                        position: 'center'  // center: 居中; bottom: 底部
                    });
                }
            });
        }
        $(function () {
            queryForPage();
            //当页面滚动条变化时，执行的函数
            $(window).scroll(function () {
                if($(document).scrollTop()+$(window).height()>=$(document).height()-0.1){
                    currentPage++;
                    queryForPage();
                };
            })
        })
    </script>
</head>

<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="javascript:history.go(-1);">
                <span><i class="fa fa-chevron-left" ></i></span>
            </a>
        </div>
        <div class="col">
            <span>我关注的人</span>
        </div>
        <div class="col"></div>
    </div>
</div>
<div class="container systemMsg">
    <dl class="itemList">
    </dl>
</div>

</body>

</html>